package com.avengers.common.bean.enums;

import java.util.LinkedHashMap;

/**
 * @author zhangnan
 * @since 2021/4/27 2:21 下午
 **/
public enum PreReleaseStatus {
    //
    WAIT("待审核"),
    WAIT_BOOKING("等待预订"),
    BOOKING("预订中"),
    AUCTION("竞价中"),
    FINISH("交易中"),
    ABORTIVE("流拍"),
    RENEGE("买家违约"),
    DELIVERED("交易成功"),
    FAIL("审核失败"),
    HAS_LOCK("域名被锁定");

    public String comment;

    PreReleaseStatus(String comment) {
        this.comment = comment;
    }

    public static LinkedHashMap<String, String> getPreReleaseStatusList() {
        LinkedHashMap<String, String> finalMap = new LinkedHashMap<>();
        for (PreReleaseStatus status : values()) {
            finalMap.put(status.name(), status.comment);
        }
        return finalMap;
    }
}